package com.joysuch.wwyt.bp.repository;

import com.joysuch.wwyt.bp.entity.investigate.BpInvestigateStoreDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @Author ZhangDong
 * @Date 2020/3/25 10:50
 */
public interface BpInvestigateStoreDetailRepository extends JpaRepository<BpInvestigateStoreDetail, Long>, JpaSpecificationExecutor<BpInvestigateStoreDetail> {

    List<BpInvestigateStoreDetail> findByStoreId(Long storeId);

    void deleteByStoreId(Long storeId);
}
